package com.bright.ghj.overt.pojo.command;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author Tz
 * @date 2024/01/22 15:03
 * @Description 上传到廉政平台的操作命令
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "上传到廉政平台的操作命令")
public class CollectPlatformCommand extends CommonCommand{

    @ApiModelProperty(name = "distNo", value = "地区编号", required = true)
    private String distNo;

    @ApiModelProperty(name = "ztIds", value = "选择上传账套的账套号列表", required = true)
    @NotEmpty(message = "账套号列表不能为空")
    private List<String> ztIds;

    @ApiModelProperty(name = "years", value = "年份", required = true)
    @NotNull(message = "年份不能为空")
    private Integer years;

    @ApiModelProperty(name = "months", value = "月份", required = true)
    @NotNull(message = "月份不能为空")
    private Integer months;

    @ApiModelProperty(name = "username", value = "操作用户")
    private String username;
}
